import request from '@/utils/request'

// 查询管网监控列表
export function listDispatchPipeNetworkMonitor(query) {
  return request({
    url: '/system/dispatchPipeNetworkMonitor/list',
    method: 'get',
    params: query
  })
}

// 查询管网监控详细
export function getDispatchPipeNetworkMonitor(pipeNetworkMonitorId) {
  return request({
    url: '/system/dispatchPipeNetworkMonitor/' + pipeNetworkMonitorId,
    method: 'get'
  })
}

// 新增管网监控
export function addDispatchPipeNetworkMonitor(data) {
  return request({
    url: '/system/dispatchPipeNetworkMonitor',
    method: 'post',
    data: data
  })
}

// 修改管网监控
export function updateDispatchPipeNetworkMonitor(data) {
  return request({
    url: '/system/dispatchPipeNetworkMonitor',
    method: 'put',
    data: data
  })
}

// 删除管网监控
export function delDispatchPipeNetworkMonitor(pipeNetworkMonitorId) {
  return request({
    url: '/system/dispatchPipeNetworkMonitor/' + pipeNetworkMonitorId,
    method: 'delete'
  })
}
